<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>物资管理/商店</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-shop.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/shop.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td valign="top"><table id="theObjTable" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6" onMouseOver=changeto(); onmouseout=changeback();>
          <tr>
            <td width="4%" class="tdClass">选择</td>
            <td width="4%" class="tdClass">序号</td>
            <td width="8%" class="tdClass">商店名称</td>
            <td width="7%" class="tdClass">商店代码</td>
            <td width="6%" class="tdClass">购买次数</td>
            <td width="8%" class="tdClass">消费金额/￥</td>
            <td width="8%" class="tdClass">激活状态</td>
            <td width="20%" class="tdClass">商店地址</td>
            <td width="20%" class="tdClass">描述</td>
            <td width="*" class="tdClass">...</td>           
          </tr>
          <logic:notEmpty name="shopList">
          <% int i = 0; %>
            <logic:iterate id="var" name="shopList">
            <% i++; %>
              <tr>
                <c:if test="${var.shopType=='1'}">
                <td class="STYLE22"><input type="checkbox" name="ids" value="${var.shopID}" /></td>
                <td class="STYLE22"><%=i %></td>
                <td class="STYLE21">&nbsp;<bean:write name="var" property="shopName" /></td>
                <td class="STYLE22"><bean:write name="var" property="shopCode" /></td>
                <td class="STYLE22"><bean:write name="var" property="buyNum" /></td>
                <td class="STYLE23"><bean:write name="var" property="totalMoney" />￥&nbsp;</td>
                <td class="STYLE22"><a href="shop.do?method=stateShop&state=yijihuo&pageNum=${pageNum}&shopID=${var.shopID}">已激活</a></td>
                <td class="STYLE21">&nbsp;<a href="${var.shopAddress}" target="view_window"><bean:write name="var" property="shopAddress" /></a></td>
                <td class="STYLE21">&nbsp;<bean:write name="var" property="shopDesc" /></td>
                <td class="STYLE22">&nbsp;&nbsp;</td>
                </c:if>
                <c:if test="${var.shopType=='0'}">
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.shopID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="shopName" /></td>
                <td class="STYLE12"><bean:write name="var" property="shopCode" /></td>
                <td class="STYLE12">&nbsp;</td>
                <td class="STYLE13">&nbsp;</td>
                <td class="STYLE12"><a href="shop.do?method=stateShop&state=weijihuo&pageNum=${pageNum}&shopID=${var.shopID}">未激活</a></td>
                <td class="STYLE11">&nbsp;<a href="${var.shopAddress}" target="view_window"><bean:write name="var" property="shopAddress" /></a></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="shopDesc" /></td>
                <td class="STYLE12">&nbsp;&nbsp;</td>
                </c:if>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../page.jsp"%>
</table>
</html:form>
</body>
</html>

